(compilation-move-to-column): Guard against negative col values.
authorSam Steingold <sds@gnu.org>
Tue, 3 Mar 2009 22:26:24 +0000 (22:26 +0000)
committerSam Steingold <sds@gnu.org>
Tue, 3 Mar 2009 22:26:24 +0000 (22:26 +0000)
lisp/ChangeLog
lisp/progmodes/compile.el

index 3ee41ddc90f84e5ce3d158ab808d51dbfe5e1727..4c50a72e9c90597ba53d5706df0731528975078b 100644 (file)
@@ -1,3 +1,8 @@
+2009-03-03  Sam Steingold  <sds@gnu.org>
+
+       * progmodes/compile.el (compilation-move-to-column):
+       Guard against negative col values.
+
 2009-03-03  Simon Josefsson  <simon@josefsson.org>
 
        * mail/smtpmail.el (smtpmail-auth-supported): Mention that list is
index 68a408f6987c995ac15e1574b868666dfc822bfb..ee2e09132e7ba137bb7fb3b6cc563a4b110479b9 100644 (file)
@@ -864,7 +864,7 @@ from a different message."
 If SCREEN is non-nil, columns are screen columns, otherwise, they are
 just char-counts."
   (if screen
-      (move-to-column col)
+      (move-to-column (max col 0))
     (goto-char (min (+ (line-beginning-position) col) (line-end-position)))))
 
 (defun compilation-internal-error-properties (file line end-line col end-col type fmts)